From 25ccbf4e3f982afdd8bed2993c05153bd8443419 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Wed, 13 Jan 2016 16:25:41 -0500 Subject: [PATCH] Improve docs for icon-related CSS properties Clarify the relation between the various properties and the icon loading functions. --- docs/reference/gtk/css-overview.xml | 7 ++++--- docs/reference/gtk/css-properties.xml | 13 +++++++------ 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/docs/reference/gtk/css-overview.xml b/docs/reference/gtk/css-overview.xml index 8d15f81288..497368c2ce 100644 --- a/docs/reference/gtk/css-overview.xml +++ b/docs/reference/gtk/css-overview.xml @@ -797,8 +797,9 @@ label { The specified icon name is used to look up a themed icon, while taking - the values of the -gtk-icon-style and -gtk-icon-theme properties. This - kind of image is mainly used as value of the -gtk-icon-source property. + into account the values of the -gtk-icon-theme and -gtk-icon-palette + properties. This kind of image is mainly used as value of the + -gtk-icon-source property. @@ -817,7 +818,7 @@ arrow.fancy { GTK+ supports scaled rendering on hi-resolution displays. This works - best if images can be specify normal and hi-resolution variants. From + best if images can specify normal and hi-resolution variants. From CSS, this can be done with the -gtk-scaled syntax. diff --git a/docs/reference/gtk/css-properties.xml b/docs/reference/gtk/css-properties.xml index 053cd14150..efcdd765d2 100644 --- a/docs/reference/gtk/css-properties.xml +++ b/docs/reference/gtk/css-properties.xml @@ -381,7 +381,7 @@ We use for syntax productions, and each line is put in a ✓ - + Determines the preferred style for application-loaded icons ‑gtk‑icon‑theme @@ -390,16 +390,16 @@ We use for syntax productions, and each line is put in a ✓ - Since 3.20 + The icon theme to use with -gtk-icontheme(). Since 3.20 ‑gtk‑icon‑palette - default | 〈name〉 〈color〉 [ , 〈name〉 〈color〉 ]* + 〈color palette〉 default ✓ ✓ - Since 3.20 + Used to recolor symbolic icons (both application-loaded and from -gtk-icontheme()). Since 3.20 ‑gtk‑icon‑shadow @@ -426,6 +426,7 @@ We use for syntax productions, and each line is put in a 〈transform〉 = matrix( 〈number〉 [ , 〈number〉 ]{5} ) | translate( 〈length〉, 〈length〉 ) | translateX( 〈length〉 ) | translateY( 〈length〉 ) | scale( 〈number〉[ , 〈number〉 ]? ) | scaleX( 〈number〉 ) | scaleY( 〈number〉 ) | rotate( 〈angle〉 ) | skew( 〈angle〉 [ , 〈angle〉 ]? ) | skewX( 〈angle〉 ) | skewY( 〈angle〉 ) +〈color palette〉 = default | 〈name〉 〈color〉 [ , 〈name〉 〈color〉 ]* @@ -433,8 +434,8 @@ We use for syntax productions, and each line is put in a as arrows, expanders, spinners, checks or radios. -gtk-icon-style and -gtk-icon-theme are used when resolving images using the -gtk-icontheme syntax. -gtk-icon-palette defines a color palette for recoloring symbolic - icons. The recognized names for colors in symbolic icons are "error", - "warning" and "success". + icons. The recognized names for colors in symbolic icons are error, + warning and success. -- 2.30.2